<%@page pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-cmn">
<head>
    <title>Document</title>

    <%@include file="/WEB-INF/jsp/header.jsp"%>
    <link rel="stylesheet" href="${ctx}/statics/moban/plugins/layui/css/layui.css"  />
</head>
<body>
    <div class="container-fluid">
        <input type="hidden" id="woJ" value="${sessionScope.loginUser.role.deId}" />
        <div class="panel panel-default">
            <div class="panel-heading">
                <h3 class="panel-title">医护人员条件查询</h3>
            </div>
            <div class="panel-body">
                <form action="" class="form-inline" id="condition">
                    <div class="form-group">
                        <label for="" class="form-label">人员名称:</label>
                        <input type="text" id="woName" value="" class="form-control" name="woName" oninput="showValue(this.value)">

                    </div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <div class="form-group">
                            <label for="" id="dong" class="form-label">所属职位:</label>
                            <select name="woRoleId" id="roleId" class="form-control" style="width: 200px" data="" oninput="showValue(this.value)">
                                <option value="-1"  >==请选择==</option>
                            </select>
                    </div>
                    <div style="height: 20px"></div>
                    <div class="form-group">
                            <label for="" class="form-label">联系电话:</label>
                            <input type="text" id="phone" value="" class="form-control" name="phone" oninput="showValue(this.value)" >
                    </div>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <div class="form-group">
                            <label for="" class="form-label">出生日期:</label>
                            <input type="text" value="" oninput="showValue(this.value)" class="form-control" name="startDate"/>-
                            <input type="text" value="" oninput="showValue(this.value)" class="form-control" name="endDate"/>
                    </div>
                    &nbsp;&nbsp;&nbsp;
                    <button type="button" class="btn btn-primary" onclick="searchMedicper()"><i class="glyphicon glyphicon-search"></i>查询</button>
                </form>
            </div>
        </div>
        <blockquote class="layui-elem-quote">
            <button type="button" onclick="add()" class="layui-btn layui-btn-small" id="add">
                <i class="layui-icon"></i> 添加药品信息
            </button>
            <button type="button" onclick="batchDel()" class="layui-btn layui-btn-danger layui-btn-small" id="batchDel">
                <i class="layui-icon"></i> 批量删除
            </button>
        </blockquote>
        <table  id="medicperTable"
                data-toggle="table"
                data-url="${ctx}/doc/search"
                data-toolbar="#toolbar"
                data-striped="true"
                data-pagination="true"
                data-side-pagination="server"
                data-page-list="[5,10,15,30]"
                data-smart-display="true"
                data-click-to-select="true"
        >
            <thead>
            <tr>
                <th data-checkbox="true" ></th>
                <th data-field="woJubnum">医护人员工号</th>
                <th data-field="worker.woName">医护人员名称</th>
                <th data-field="worker.workLife">工作年限</th>
                <th data-field="worker.woPhone">练习电话</th>
                <th data-field="worker.age">年龄</th>
                <th data-field="worker.woEducation">学历</th>
                <th data-field="worker.woAddress">住址</th>
                <th data-formatter="optEvent" data-events="optEvents">操作</th>
            </tr>
            </thead>
        </table>
    </div>
    <%@include file="/WEB-INF/jsp/footer.jsp"%>
    <script src="${ctx}/res/js/Medicper.js"></script>
    <script src="${ctx}/statics/js/bootstrap-typeahead.js"></script>
    <script>
        var result = '${result}'
        if(result!=null && result !=''){
            toastr.warning(result);
        }
    </script>
</body>
</html>
